<template>
  <el-container>
    <!-- 页头 -->
    <el-header>
      <HeaderBar></HeaderBar>
    </el-header>
    <!-- 内容 -->
    <el-main class="app-main">
      <router-view v-slot="{ Component }">
        <keep-alive>
          <transition name="fade">
            <component :is="Component" />
          </transition>
        </keep-alive>
      </router-view>
    </el-main>
  </el-container>
</template>

<script setup>
import HeaderBar from "./layout/HeaderBar/HeaderBar.vue";
</script>

<style lang="scss" scoped>
.app-main {
  height: var(--page-main-height);
}
</style>
